/**
 * Created by evantang on 2017/9/19.
 */
import {Pipe, PipeTransform} from "@angular/core";

@Pipe({name: 'riskCheckStatus'})
export class RiskCheckPipe implements PipeTransform {
    transform(value: string, args: string[]): any {
        switch (value) {
            case 'created':
                return '新建';
            case 'checking':
                return '排查中';
            case 'processing':
              return '排查中';
            case 'finished':
                return '完成';
            default:
                return '--';
        }
    }
}
